package com.wxy.test2.decoratorpattern;

public class ScrollBarDecorator extends ComponentDecorator{
    public ScrollBarDecorator(Component component) {
        super(component);
    }

    public void setScrollBar(){
        System.out.println("新增[滚动条]已加载");
    }

    @Override
    public void display() {
        super.display();
        this.setScrollBar();
    }
}
